package com.he.starter1.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;
import java.util.Map;

/**
 * @author heyanjing
 * date:2020-03-12 2020/3/12:9:54
 */
@Data
@ConfigurationProperties(prefix = "prop.dog")
public class DogProp {

    private String              name;
    private Integer             age;
    private Boolean             sex = true;
    private List<String>        nickNames;
    private Map<String, Object> childs;
    private StateEnum           state;

    enum StateEnum {
        VALID,
        INVALID
    }

}
